﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Login.aspx.cs" Inherits="KPIS.GERP.GBMS.APP_UI.Form.Login" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <telerik:RadCodeBlock ID="RadCodeBlockMaster" runat="server">
        <script type="text/javascript">            
            function GetHeight() 
            {
                var myHeight = 0;
                if( typeof( window.innerWidth ) == 'number' )
                {
                    //Non-IE
                    myHeight = window.innerHeight;
                }
                else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) )
                {
                    //IE 6+ in 'standards compliant mode'
                    myHeight = document.documentElement.clientHeight;
                }
                else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) )
                {
                    //IE 4 compatible
                    myHeight = document.body.clientHeight;
                }
                
                document.getElementById('<%=hHeight.ClientID %>').value = myHeight;
            }
        </script>
    </telerik:RadCodeBlock>
    <telerik:RadScriptManager ID="RadScriptManager1" runat="server">
    </telerik:RadScriptManager>
    <asp:HiddenField id="hHeight" runat="server" />
    <div style="padding: 100px 0px 0px 0px; text-align: center;">
        <table width="400px" style="text-align: left" align="center">
            <tr>
                <td bgcolor="#647B8F"
                    style="color: #FFFFFF; font-weight: bold; font-size: x-large; font-family: 'Times New Roman', Times, serif;"
                    height="40px">
                    &nbsp;&nbsp;Login
                </td>
                    <%--style="color: #FFFFFF; font-weight: bold; font-size: x-large; font-family: 'Times New Roman', Times, serif; background-image: url('../Images/PageViews/LoginBG.png');" --%>
            </tr>
            <tr>
                <td height="20px">
                </td>
            </tr>
            <tr>
                <td>
                    <table>
                        <tr>
                            <td align="right" style="font-weight: bold; color: #647B8F;" width="150px">
                                รหัสประจำตัว 
                                :</td>
                            <td align="left">
                                <telerik:RadTextBox ID="txtUserID" Runat="server" width="150px">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                        <tr>
                            <td align="right" style="font-weight: bold; color: #647B8F;" >
                                รหัสผ่าน :</td>
                            <td align="left">
                                <telerik:RadTextBox ID="txtPassword" Runat="server" TextMode="Password" width="150px">
                                </telerik:RadTextBox>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
            <tr>
                <td height="20px" align="center">
                    <asp:Label ID="lblError" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label>
                </td>
            </tr>
            <tr>
                <td align="center">
                    <asp:Button ID="cmdLogin" runat="server" OnClientClick="GetHeight()" 
                        Text="เข้าสู่ระบบ" Width="100" OnClick="cmdLogin_Click" />
                </td>
            </tr>
            <tr>
                <td height="20px">
                </td>
            </tr>
            <tr>
                <td height="40px" bgcolor="#647B8F">
                    <%--style="color: #FFFFFF; font-weight: bold; font-size: x-large; font-family: 'Times New Roman', Times, serif; background-image: url('../Images/PageViews/LoginBG.png');"--%>
                </td>
            </tr>
        </table>
    </div>
    <br />
    <div style="text-align: center;">
    <asp:Panel ID="Panel2" runat="server" HorizontalAlign="Center">
        <table width="100%">
            <tr>
                <td style="color: #0000FF; font-size: medium">
                    แสดงผลได้ถูกต้องบน Internet Explorer 8 ขึ้นไป
                </td>
            </tr>
            <tr>
                <td style="color: #FF0000; font-size: medium">
                    หากพบปัญหาการใช้งาน กรุณาโทรแจ้ง 7829 หรือ Email มาที่ gerp@ditp.go.th พร้อมทั้งแจ้งชื่อและหน่วยงานด้วย 
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Documents/UserGuide.doc">User guide</asp:HyperLink>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl="~/Documents/ChangeLog.txt">Change log</asp:HyperLink>
                </td>
            </tr>
        </table>
        <%--<table align="center">
            <tr align="left">
                <td style="font-weight: bold; color: #FF0000">
                    <br />
                    ข้อมูลใช้ในการทดสอบระบบ
                </td>
            </tr>
            <tr align="left">
                <td >
                    ระดับ ทั่วไป(สารสนเทศ)   
                    <br />
                    ระดับ ผอ.สำนัก              
                    <br />
                    ระดับ ยุทธศาสตร์             
                </td>
                <td>
                    =  Username : 3149900560004
                    <br />
                     =  Username : 3909801143866
                    <br />
                     =  Username : 3709800205266
                </td>
                <td>
                     Password : 1967
                    <br />
                     Password : 1955
                    <br />
                     Password : 1975
                </td>
            </tr>
        </table>--%>
    </asp:Panel>
    </div>
    </form>
</body>
</html>


